/** 程序集:PM.Monitor, Version=1.1.7783.17862, Culture=neutral, PublicKeyToken=null;类名:PM.Monitor.Controllers.MonitorController**/

import type { JCRequestOption } from '../ServiceBase';
import { ServiceBase } from '../ServiceBase';
import { ApiPre } from '../../config';

const urlbase = `${ApiPre}/Monitor`;
export class MonitorApiService extends ServiceBase {
  Monitor(param: ReceiveMonitorCm[], option: JCRequestOption = {}) {
    return this.request<MonitorResultCm[]>(`${urlbase}/Monitor`, { param }, option);
  }

  MonitorService(option: JCRequestOption = {}) {
    return this.request<any>(`${urlbase}/MonitorService`, null, option);
  }

  GetHealthStatus(option: JCRequestOption = {}) {
    return this.request<HealthStatusModel>(`${urlbase}/GetHealthStatus`, null, option);
  }

  GetTestHtml(option: JCRequestOption = {}) {
    return this.request<any>(`${urlbase}/GetTestHtml`, null, option);
  }
}

export class ReceiveMonitorCm {
  Key = '';

  Value = '';
}

export class MonitorResultCm {
  Key = '';

  Value: any = '';
}

export class HealthStatusModel {
  Time = '';

  MachineName = '';

  Ip = '';

  Msg = '';
}
